package nl.hanze.designpatterns.Controllers;

import nl.hanze.designpatterns.Models.MainModel;
import nl.hanze.designpatterns.Views.MainScreen;

/**
 * Created by Jeff on 25-9-2014.
 */
public class SaurusController {

    private MainModel mainModel;
    private MainScreen mainScreen;

    public SaurusController(MainScreen mainScreen, MainModel mainModel) {
        this.mainScreen = mainScreen;
        this.mainModel = mainModel;
    }

    public void logout() {
        System.out.println("[LOGOUT]");
        this.mainModel.logout();
        mainScreen.changeView("login");
    }

    public void returnToTickets() {
        System.out.println("Returning to the ticket screen.");
        mainScreen.changeView("ticket");
    }


}



